 upstream tomcat_pools {
    server {{ tomcat1 }} weight=1;
    server {{ tomcat2 }} weight=1;
  }  

    server {
        listen      {{ nginx_tomcat_port }};
        server_name  {{ tomcat_server_name }};
        location / {
        root html;
        index index.jsp index.html index.htm;
        proxy_pass http://tomcat_pools;
        proxy_set_header Host  $http_host;
            proxy_set_header X-Forwarded-For $remote_addr;
        }
    }
